package cn.touna.jss.modules.callback.service.impl;

import cn.touna.jss.modules.callback.entity.JuxinliCallback;
import cn.touna.jss.modules.callback.entity.JuxinliCallbackExample;
import cn.touna.jss.modules.callback.entity.MoxieCallbackEntity;
import cn.touna.jss.modules.callback.mapper.JuxinliCallbackMapper;
import cn.touna.jss.modules.callback.mapper.MoxieCallbackEntityMapper;
import cn.touna.jss.modules.callback.service.ExtCallBackService;
import org.apache.commons.collections.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 外部回调Service
 * Created by wuwc on 2018/1/19.
 */
@Service
public class ExtCallBackServiceImpl implements ExtCallBackService {

    @Autowired
    private MoxieCallbackEntityMapper moxieCallbackEntityMapper;

    @Autowired
    private JuxinliCallbackMapper juxinliCallbackMapper;


    @Override
    public int saveMoxieCallbackHistory(MoxieCallbackEntity moxieCallbackEntity) {
        return moxieCallbackEntityMapper.insertSelective(moxieCallbackEntity);
    }

    @Override
    public int saveJxlCallbackHistory(JuxinliCallback juxinliCallback) {
        return juxinliCallbackMapper.insertSelective(juxinliCallback);
    }
}
